package cn.marknum.gateway.filter;//package springcloud;
//
//import org.springframework.cloud.gateway.filter.ratelimit.KeyResolver;
//import org.springframework.web.server.ServerWebExchange;
//import reactor.core.publisher.Mono;
//
///**
// * @Description: 限流解析器
// * @Author: wangxiaohong
// * @Date: 14:51 2019-08-23
// */
////@Configuration
//public class HostAddkeyResolver implements KeyResolver {
//
//
//    @Override
//    public Mono<String> resolve(ServerWebExchange exchange) {
//        return Mono.just(exchange.getRequest().getRemoteAddress().getAddress().getHostAddress());
//    }
//}
